home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 May: Tool Chest / Developer CD Series May 1996 (Tool Chest) (Apple Computer) (1996).iso / Sample Code / Standard File Samples / CustomPutSuffix / CustomPutSuffix.r < prev    next >
Encoding:
Text File  |  1995-06-16  |  1.8 KB  |  85 lines  |  [TEXT/MMCC]

  1. #define SystemSevenOrLater 1
  2. #include "types.r"
  3.  
  4.  
  5.  
  6. /*\
  7. |*| ---------------------------------------------------------------------
  8. |*| Strings to append to file
  9. |*| ---------------------------------------------------------------------
  10. \*/
  11. resource 'STR#' (128, purgeable)
  12. {
  13.     {
  14.         ".c",".h",".o"
  15.     }
  16. };
  17.  
  18.  
  19. /*\
  20. |*| ---------------------------------------------------------------------
  21. |*| 'DITL' for Replace? dialog
  22. |*| ---------------------------------------------------------------------
  23. \*/
  24. resource 'DITL' (6045, purgeable)
  25. {
  26.     {
  27.         { 84,  14, 104,  84}, Button { enabled, "Cancel" },
  28.         { 84, 124, 104, 194}, Button { enabled, "Replace" },
  29.         { 10,  10,  76, 194}, StaticText { disabled, "Replace existing “^0” ?" }
  30.     }
  31. };
  32.  
  33.  
  34. /*\
  35. |*| ---------------------------------------------------------------------
  36. |*| 'ALRT' for Replace? dialog
  37. |*| ---------------------------------------------------------------------
  38. \*/
  39. resource 'ALRT' (6045, purgeable)
  40. {
  41.     {0, 0, 118, 204},
  42.     6045,
  43.     {    
  44.         OK, visible, silent,
  45.         OK, visible, silent,
  46.         OK, visible, silent,
  47.         OK, visible, silent
  48.     },
  49.     centerParentWindow
  50. };
  51.  
  52.  
  53.  
  54. /*\
  55. |*| ---------------------------------------------------------------------
  56. |*| 'DITL' for the dialog to output the results
  57. |*| ---------------------------------------------------------------------
  58. \*/
  59. resource 'DITL' (128)
  60. {
  61.     {    
  62.         {137, 278, 157, 358}, Button { enabled, "Quit" },
  63.         {137, 184, 157, 264}, Button { enabled, "Again…" },
  64.         { 13,  17, 127, 359}, StaticText { disabled, "" }
  65.     }
  66. };
  67.  
  68.  
  69. /*\
  70. |*| ---------------------------------------------------------------------
  71. |*| 'DLOG' for the dialog to output the results
  72. |*| ---------------------------------------------------------------------
  73. \*/
  74. resource 'DLOG' (128) {
  75.     {58, 30, 230, 406},
  76.     dBoxProc,
  77.     invisible,
  78.     goAway,
  79.     0x0,
  80.     128,
  81.     "",
  82.     alertPositionMainScreen
  83. };
  84.  
  85.